<?php

/**
 * @author
 * @date      April 11, 2011
 *
 */
class Admin_FormController extends Admin_Library_Controller_Action
{

    /**
     * @todo Redirect to login page
     * @return void
     */
    public function indexAction()
    {
        $uid = $this->_getParam('id');
        $form = new Admin_Form_User($uid);
        if ($uid) {
            $data = array(
                'username' => 'tom',
                'fullname' => 'tommy',
                'address' => 'My address',
                'mobile' => '1234567890',
            );
            $form->populate($data);
        }


        if ($this->_request->isPost()) {
            Zend_Debug::dump($_POST);
            die;
        }

        $this->view->form = $form;
    }

}